package model.action;
import com.opensymphony.xwork2.ActionSupport;
public class LoginAction extends ActionSupport {
    private static final long serialVersionUID = -8936128602835626717L;
    private String userid;
    private String password;

    public String getUserid() {
        return userid;
    }
    public void setUserid(String userid) {
        this.userid = userid;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    @Override
    public String execute() {
        if (userid.equals("admin") && password.equals("admin"))
            return SUCCESS;
        else
            return ERROR;
    }
}